<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/css/Site.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/css/zy.all.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/css/font-awesome.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/css/amazeui.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/css/admin.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/css/zy.menu.css" />
	</head>

<body>
		<div class="dvcontent">

			<div>
				<!--tab start-->
				<div class="tabs">
						<div class="hd">
							<ul style="">
								<li style="box-sizing: initial;-webkit-box-sizing: initial;" class="on">库位信息管理</li>
								<li style="box-sizing: initial;-webkit-box-sizing: initial;">添加库位信息</li>
							</ul>
						</div>
					<div class="bd">
						<ul style="display: block;padding: 20px;">
							<li>
								<!--分页显示角色信息 start-->
								<div id="dv1">
									<table class="table" id="tbRecord">
										<thead>
											<tr>
											  <th>库位编码</th>
											  <th>库位区域</th>
										      <th>库存限制</th>
										      <th>库存已用量</th>
										      <th>库存可用量</th>
										      <th>查询库位商品</th>
										      <th>修改</th>
										      <th>删除</th>
											</tr>
										</thead>
										<tbody id="content_table_body">
											<c:forEach items="${list_loc}" var="i">
												<tr>
													<td>
														${i.loc_id}
													</td>
													<td>
														${i.region}
													</td>
													<td>
														${i.stacklimit}
													</td>
													<td>
														${i.stackuesd}
													</td>
													<td>
														${i.stackremianed}
													</td>
													<td class="query"><a href="${pageContext.request.contextPath }/loc/findSkuByloc_id/${i.loc_id}"><i class="icon-edit bigger-120"></i>查询</a></td>
													<td class="edit"><a href="${pageContext.request.contextPath }/loc/toUpdateLocPage/${i.loc_id}"><i class="icon-edit bigger-120"></i>修改</a></td>
													<td class="delete"><a href="${pageContext.request.contextPath }/loc/delete/${i.loc_id}" onclick="return confirm('确认删除吗？想好了吗？');"><i class="icon-trash bigger-120">删除</a></td>
													</tr>
												</c:forEach>
										</tbody>
											
										</tbody>
									
									</table>
								</div>
								<!--分页显示角色信息 end-->
							</li>
						</ul>
						<ul class="theme-popbod dform" style="display: none;">
								<div class="am-cf admin-main" style="padding-top: 0px;">
			<!-- content start -->
			
	<div class="am-cf admin-main" style="padding-top: 0px;">
		<!-- content start -->
		<div class="admin-content">
			<div class="admin-content-body">
				
				<div class="am-g">
					<div class="am-u-sm-12 am-u-md-4 am-u-md-push-8"></div>
					<div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4" style="padding-top: 30px;">
						<form class="am-form am-form-horizontal" action="${pageContext.request.contextPath }/loc/insert" method="post">
							<input type="hidden" name="stackremianed" value="0">
							<div class="am-form-group">
								<label for="name" class="am-u-sm-3 am-form-label">库位编号</label>
								<div class="am-u-sm-9">
									<input type="text" required placeholder="库位编号" name="loc_id" value="${loc.loc_id }">
								</div>
							</div>
							
							<div class="am-form-group">
								<label for="name" class="am-u-sm-3 am-form-label">库位区域</label>
								<div class="am-u-sm-9">
									<select name="region" id="sel_type">
										<option value="0">=请选择=</option>
										<option value="A区">A区</option>
										<option value="B区">B区</option>
										<option value="C区">C区</option>
										<option value="D区">D区</option>
									</select>
								</div>
							</div>
							
							<div class="am-form-group">
								<label for="name" class="am-u-sm-3 am-form-label">库存限制</label>
								<div class="am-u-sm-9">
									<input type="text"  required placeholder="库存限制" name="stacklimit" value="${loc.stacklimit }">
								</div>
							</div>
							
							
							
							<div class="am-form-group">
								<label for="name" class="am-u-sm-3 am-form-label">存放数量</label>
								<div class="am-u-sm-9">
									<input type="text"  required placeholder="存放数量" name="stackuesd" value="${loc.stackuesd }">
								</div>
							</div>
							
							<div class="am-form-group">
								<div class="am-u-sm-9 am-u-sm-push-3">
									<input type="submit"  class="am-btn am-btn-success" value="添加" onclick="return check();"/>
									<input type="submit"  class="am-btn am-btn-success" value="返回" onclick="window.location='${pageContext.request.contextPath }/loc/findAll'"/>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
			
		</div>
		<!-- content end -->
	</div>
							<!--添加 end-->
							<!--end-->
						</ul>
					</div>
				</div>
				<!--tab end-->

			</div>

			
			 <script src="${pageContext.request.contextPath }/js/jquery-1.7.2.min.js" type="text/javascript"></script>
              <script src="${pageContext.request.contextPath }/js/plugs/Jqueryplugs.js" type="text/javascript"></script>
              <script src="${pageContext.request.contextPath }/js/_layout.js"></script>
             <script src="${pageContext.request.contextPath }/js/plugs/jquery.SuperSlide.source.js"></script>
             
             
			<script>
				var num = 1;
				$(function() {

				 $(".tabs").slide({ trigger: "click" });

				});

			</script>
			
			<script type="text/javascript">function check() {
				var sel_type = document.getElementById('sel_storer');
				
				 if(sel_type.value == 0) {
					alert("请选择存放的商品");
					return false;
				}
				 else {
					return true;
				} 
				
             }</script>

		</div>
	</body>


</html>